package pl.qsoft.db.storedProc.intercept;

/**
 * Interface defining methods of a invocation interceptor that is called just before and right after stored procedure invocation.
 * Class implementing this interface must provide no-arg constructor.
 * @author Wojciech Kudla
 */
public interface InvocationInterceptor {
	
	/**
	 * Method called before stored procedure invocation
	 * @param ctx Invocation context
	 */
	public void beforeInvoke(ProcedureInvocationContext ctx);

	/**
	 * Method called after stored procedure invocation
	 * @param ctx Invocation context
	 */
	public void afterInvoke(ProcedureInvocationContext ctx);

}
